package com.ruoyi.clerkBalance.mapper;

import com.ruoyi.adapayBalance.domain.AdapayBalance;
import com.ruoyi.clerkBalance.domain.ClerkBalance;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ClerkBalanceMapper {

    /**
     * 查询余额记录
     *
     * @param id 余额记录主键
     * @return 余额记录
     */
    public ClerkBalance selectClerkBalanceById(Long id);


    public ClerkBalance selectClerkBalanceByStoreUserId(Long id);
    /**
     * 查询余额记录列表
     *
     * @param adapayBalance 余额记录
     * @return 余额记录集合
     */
    public List<ClerkBalance> selectClerkBalanceList(ClerkBalance adapayBalance);

    /**
     * 新增余额记录
     *
     * @param adapayBalance 余额记录
     * @return 结果
     */
    public int insertClerkBalance(ClerkBalance adapayBalance);

    /**
     * 修改余额记录
     *
     * @param adapayBalance 余额记录
     * @return 结果
     */
    public int updateClerkBalance(ClerkBalance adapayBalance);

    /**
     * 删除余额记录
     *
     * @param id 余额记录主键
     * @return 结果
     */
    public int deleteClerkBalanceById(Long id);

    /**
     * 批量删除余额记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteClerkBalanceByIds(Long[] ids);

    /**
     * 批量逻辑删除余额记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int logicDeleteClerkBalance(@Param("array")Long[] ids, @Param("delType")String delType, @Param("delUser")Long delUser);

    /**
     * 操作余额
     * @param paramMap
     */
    public void handleBalance(Map<String, Object> paramMap);

    public void handleBalance2(Map<String, Object> paramMap);

    public void handleBalance3(Map<String, Object> paramMap);


}
